package com.suntianci.stock;

import com.suntianci.stock.pojo.vo.TaskThreadPoolInfo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * @ClassName JobApp
 * @Author 孙天赐
 * @Date 2025/1/4 13:12
 * @Description TODO:job工程SpringBoot启动类
 */

@SpringBootApplication
@MapperScan("com.suntianci.stock.mapper")  // 扫描持久层mapper接口，生成代理对象，并维护到spring的IOC容器中
@EnableConfigurationProperties(TaskThreadPoolInfo.class) // 开启线程池配置
public class JobApp {
    public static void main(String[] args) {
        SpringApplication.run(JobApp.class, args);
    }
}
